home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PCMania 73
/
PCMania CD73_1.iso
/
sharewar
/
utiles
/
viff
/
makefile.mvc
< prev
next >
Wrap
Makefile
|
1997-12-08
|
3KB
|
99 lines
# ####################### -*- Mode: Text -*- ###########################
#
# makefile. -- viff makefile for MSVC++
#
# Copyright (C) 1996-1997 Richard Flamsholt S0rensen. All rights reserved.
#
# Author : Richard Flamsholt S0rensen
# Created On : Sat Jul 27 20:23:25 1996
# Last Modified By: Richard Flamsholt S0rensen
# Last Modified On: Mon Dec 08 11:06:42 1997
# Update Count : 125
# Revision History: None
#
# COMMENTS
# HISTORY
# ######################################################################
###########
# Edit these to point to your MSVC++ and Curses directories
#
CC_DIR = c:\msvc
CURSES = c:\bin\pdcurses
#
###########
SYSTEM = -DMSDOS -UWIN32 -UUNIX -DMSVC -UDJGPP -UBC31 -USCO
CC = $(CC_DIR)\bin\cl
LINK = $(CC_DIR)\bin\link
WARNINGS = -W3
LIB=$(CC_DIR)\lib
INCLUDE=$(CC_DIR)\include
PATH=$(CC_DIR)\bin
# uncomment these five lines to use the Mallory memory checker:
#MAL_INC = -I$(MAL_DIR)
#MAL_OBJ = mallory.obj
#MAL_DIR = c:\util\mallory
#MAL_STDINCL= -DMALLORY_STDINCL=$(CC_DIR)\include
#MAL_FLAGS = -DMALLORY_NO_ZALLOC -DSHOW_MEM_USAGE
# for using TurboPowers TSR package to swap out while diffing
# TSR_DIR = c:\bin\tsr&more
# TSR_FLAG = -DTSR_OPEXEC
# TSR_INC = -I$(TSR_DIR)\inc
# TSR_OBJ = $(TSR_DIR)\opexeca.obj
# TSR_LIB = $(TSR_DIR)\base $(TSR_DIR)\tsr
DEBUG = #/Zi
LDEBUG = #/co
OPTIMIZE = /Og /Os /Oi /Gf
CFLAGS = -AL $(WARNINGS) $(OPTIMIZE) $(DEBUG) $(SYSTEM) $(TSR_FLAG) $(MAL_STDINCL)
LFLAGS = /ba /noe /stack:5000 /on:n $(LDEBUG)
INCLUDE = $(MAL_INC) -I. -I$(INCLUDE) -I$(CURSES) $(TSR_INC)
LIBS = $(CURSES)\lcurseso $(CC_DIR)\lib\llibce
all: viff.exe
viff.exe: viff.obj viffutil.obj viffedit.obj unixutil.obj date $(MAL_OBJ)
@echo linking...
@$(LINK) $(LFLAGS) @<<
viff.obj viffutil.obj viffedit.obj viffdate.obj unixutil.obj setargv.obj $(TSR_OBJ) $(MAL_OBJ),viff.exe,,$(TSR_LIB) $(LIBS),;
<<
viff.obj: viff.c viff.h viffutil.h
@$(CC) -nologo @<<
$(CFLAGS) $(WARNINGS) $(INCLUDE) -c viff.c
<<
viffutil.obj: viffutil.c viff.h viffutil.h
@$(CC) -nologo @<<
$(CFLAGS) $(WARNINGS) $(INCLUDE) -c viffutil.c
<<
viffedit.obj: viffedit.c viff.h
@$(CC) -nologo @<<
$(CFLAGS) $(WARNINGS) $(INCLUDE) -c viffedit.c
<<
unixutil.obj: unixutil.c
@$(CC) -nologo @<<
$(CFLAGS) $(WARNINGS) $(INCLUDE) -c unixutil.c
<<
date:
@$(CC) -nologo @<<
$(CFLAGS) $(WARNINGS) $(INCLUDE) -c viffdate.c
<<
mallory.obj: $(MAL_DIR)\mallory.c
@$(CC) -nologo @<<
$(CFLAGS) $(MAL_FLAGS) -I$(MAL_DIR) -I$(INCLUDE) $(MAL_STDINCL) -c $(MAL_DIR)\mallory.c
<<